<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="edu.lhh.model.scoretype"  %>
<%@ page  import="java.util.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 <link href="css/bootstrap.css" rel="stylesheet" media="screen">
  <link href="js/jquery-2.2.4.min.js" rel="stylesheet" media="screen">
<script src="js/jquery-2.2.4.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<title>Insert title here</title>
</head>
<body>

<!-- 搜索  -->
  <div style="padding: 30px 30px 10px;">
   <form class="bs-example bs-example-form" role="form" action="./scoreServlet" method="post">
      <div class="row">
         <div class="col-lg-2">
            <div class="input-group">
               <input type="text" class="form-control" placeholder="输入学生学号或姓名" name="name">
               <span class="input-group-btn">
                  <input type="submit" class="btn btn-default" name="search">
               </span>
            </div><!-- /input-group -->
         </div><!-- /.col-lg-6 -->
      </div><!-- /.row -->
   </form>
</div>
<!-- 搜索  -->


<!-- 表格  -->
	<table  class="table table-hover" >
	<thead>
	<tr >
		<th>No.&nbsp;&nbsp;&nbsp;&nbsp;</th>
		<th>Math&nbsp;&nbsp;&nbsp;</th>
		<th>English</th>
		<th>Pe&nbsp;&nbsp;&nbsp;</th>
	</tr>
	</thead>
	<%
	String id = "";
	scoretype tp = new scoretype();
	Object obj = request.getAttribute("score");
	if(obj != null){
	tp = (scoretype)obj;
	}
	else {
	tp = new scoretype();
	}
	
	
	
	
	%>

		<tbody>
		<tr>
		<%if(tp.getId() != null){ id = tp.getId();} %>
			<td><%=id %></td>
			<td><%=tp.getMath() %></td>
			<td><%=tp.getEnglish() %></td>
			<td><%=tp.getPe() %></td>
			<td></td>
		</tr>
		</tbody>
		</table>
</body>
</html>